package com.zmzncs.shop.common.pojo.enums;

/**
 * @author ：sxd
 * @date ：
 * @description：${description}
 */
public enum PayStrategyEnum {

    XRBC_PAY  ("xrbc","xrbcPayImpl"),//
    BLLM_PAY  ("bllm","boLianPayImpl"),//
    ;

    private String payType ;

    private String bean;

    PayStrategyEnum(String payType , String bean){
        this.payType = payType;
        this.bean = bean;
    }

    public static String getMes(String payType){
        PayStrategyEnum[] values = PayStrategyEnum.values();
        for (PayStrategyEnum code:values) {
            if(code.getPayType()==payType){
                return code.getBean();
            }
        }
        return "请求异常";
    }

    public static void main(String[] args) {
        System.out.println( getMes("bllm") );
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getBean() {
        return bean;
    }

    public void setBean(String bean) {
        this.bean = bean;
    }
}
